home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Varsity Update 1998 August
/
SGI Varsity Update 1998 August.iso
/
dist
/
dist6.5
/
il_dev.idb
/
usr
/
include
/
il
/
ilHistNormImg.h.z
/
ilHistNormImg.h
Wrap
C/C++ Source or Header
|
1998-07-29
|
2KB
|
65 lines
#if 0
Copyright (c) 1991 SGI All Rights Reserved
THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGI
The copyright notice above does not evidence any
actual or intended publication of such source code,
and is an unpublished work by Silicon Graphics, Inc.
This material contains CONFIDENTIAL INFORMATION that
is the property of Silicon Graphics, Inc. Any use,
duplication or disclosure not specifically authorized
by Silicon Graphics is strictly prohibited.
RESTRICTED RIGHTS LEGEND:
Use, duplication or disclosure by the Government is
subject to restrictions as set forth in subdivision
(c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at DFARS 52.227-7013, and/or in similar
or successor clauses in the FAR, DOD or NASA FAR
Supplement. Unpublished- rights reserved under the
Copyright Laws of the United States. Contractor is
SILICON GRAPHICS, INC., 2011 N. Shoreline Blvd.,
Mountain View, CA 94039-7311
#endif
/*
The operator image class is derived from the ilCacheImg. This class
implements histogram normalization of an image.
*/
#ifndef _ilHistNormImg_h_
#define _ilHistNormImg_h_
#include <il/ilHistLutImg.h>
#include <il/ilImgStat.h>
class ilHistNormImg : public ilHistLutImg {
public:
iflClassListDeclare
~ilHistNormImg();
// external api: begin
ilHistNormImg(ilImage *img, iflPixel &mn, iflPixel &std,
ilImgStat *imgstat = NULL, ilRoi *Roi = NULL,
int xoffset = 0, int yoffset = 0, int zoffset = 0);
// external api: name=ilHistNormImgDefault
ilHistNormImg(ilImage *img=NULL, ilImgStat *imgstat=NULL, ilRoi *Roi=NULL,
int xoffset=0, int yoffset=0, int zoffset=0);
void setMean(iflPixel &mn);
void setStdev(iflPixel &std);
// external api: end
private:
virtual ilStatus calcBreakpoints(ilImage* src, ilImgStat* imgstat,
double** brPoints);
virtual void resetOp();
iflPixel mean;
iflPixel stdev;
int meanSet; //indicates whether mean has been set
int stdSet; //indicates whether std. dev. has been set
};
#endif